import Link from 'next/link'; import { ArrowRight, BookOpen, Heart } from 'lucide-react'; import { GitHubIcon, TelegramIcon } from '@/components/icons'; import { Logo } from '@/components/logo'; import { Features } from '@/components/home/features'; import { GitHubStatsRow } from '@/components/home/github-stats'; import { InstallCommand } from '@/components/home/install-command'; import { getGitHubStats } from '@/lib/github-stats'; import { i18n } from '@/lib/i18n'; import { appName, productRepoUrl, deepWikiUrl, telegramChannelUrl, donateUrl } from '@/lib/shared'; import { getSiteMessages, type SiteMessages } from '@/lib/site-i18n'; export function generateStaticParams() { return i18n.languages.map((lang) => ({ lang })); } const INSTALL_COMMAND = 'bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)'; export default async function HomePage({ params }: PageProps<'/[lang]'>) { const { lang } = await params; const prefix = lang === 'en' ? '' : `/${lang}`; const m = getSiteMessages(lang); const stats = await getGitHubStats(); return ( {/* Hero */} {appName} {m.tagline} {m.getStarted} {m.viewOnGitHub} {/* Build-time stats as the initial render; refreshed live on the client. */} ); } function Footer({ prefix, m }: { prefix: string; m: SiteMessages }) { return ( ); }
{m.tagline}